package main

import (
	"fmt"
	"math"
	"math/cmplx"
)

var (
	a = 1
	b = "777"
)

func variableZeroValue() {
	var a int
	var b string
	fmt.Printf("%d,%q", a, b)
}
func variableInitial() {
	var a, b = 1, 2
	var c = "aaa"
	fmt.Println(a, b, c)
}
func variableShorter() {
	a, b, c := 1, true, "666"
	fmt.Println(a, b, c)
}
func euler() {
	fmt.Printf("%.3f", cmplx.Pow(math.E, 1i*math.Pi)+1)
	fmt.Println()
}
func constTest() {
	const a, b = 3, 4
	fmt.Println(math.Sqrt(float64(a*a + b*b)))
}
func triangle() {
	a, b := 3, 4
	var c int
	c = int(math.Sqrt(float64(a*a + b*b)))
	fmt.Println(c)
}
func main() {
	fmt.Println("Hello World")
	variableZeroValue()
	variableInitial()
	variableShorter()
	fmt.Println(a, b)
	euler()
	triangle()
	constTest()
}
